package controller

import (
	"iptv_server/v3/src/settings"
	v2_handler "iptv_server/v3/v2_src/handler"
	"net/http"
)

func New_V2Handlers() *http.ServeMux {

	mux := http.NewServeMux()
	// v2_handler.InitServer(mux, settings.SitePort, settings.FallbackURL_Path)
	v2_handler.InitServer(mux, settings.SitePort, settings.FallbackURL_Path)

	// r.Any("/api/", func(c *gin.Context) {
	// 	// &myHandler{}
	// 	fmt.Printf("c.Request.URL.Path: %v\n", c.Request.URL.Path)
	// 	mux.ServeHTTP(c.Writer, c.Request)
	// })

	// new http.Ser

	return mux
}
